package me.wpf.DesignMode.singleton;

/**
 * Description: 饱汉式，程序启动时，申请资源，典型的资源换时间，但有的场景不适用，例如数据库连接
 *
 * @author 王朋飞
 * @create 2019/5/5
 */
public class Singleton4 {
    private static Singleton4 instance=new Singleton4();

    private Singleton4(){}

    public static Singleton4 getInstance(){
        return instance;
    }
}
